<?
//******************************************************************************
//******************************************************************************
//***    Page des Comptes.                                                   ***
//***          Par Khiguard.                                                 ***
//***                 Le 05-01-2003.                                         ***
//******************************************************************************
//******************************************************************************


$query="SELECT user_mail,user_inscription,user_ancien_log,user_niv,user_exp,user_option_fullscreen,user_option_cadre,user_option_ncity,user_option_coordone,user_skin_a FROM sdusers where user_id='$_USER_ID'";
$resultat=mysql_query($query);
$tmp=mysql_fetch_row($resultat);
//6 = cadre.

   $dtmp=$tmp[1];
   $inscription=substr($dtmp,4,2)."-". substr($dtmp,6,2)."-". substr($dtmp,0,4);
   $dtmp=$tmp[2];
   $log=substr($dtmp,4,2)."-". substr($dtmp,6,2)."-". substr($dtmp,0,4);
   $heure_log=substr($dtmp,8,2).":". substr($dtmp,10,2);

$CHOIX_SKIN[$tmp[9]]="selected";
?> 
<? TITRE("Vos Options"); ?>

<div align="center"></div>
<div align="center"></div>
<div align="center"><br>
</div>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr> 
    <td><table width="100%" border="0" cellspacing="0">
        <tr> 
          <td CLASS="TD3"><div align="center">
<form name="form_option" method="post"  action="site/test/include.php" target="frame_test" >
                <div align="center"><br>
                  <table width="85%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> <fieldset CLASS="TD1" width="50%">
                        <legend> <font size="2"><B>Option de fen&ecirc;tre</B></font> 
                        </legend>
                        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
                          <tr valign="middle"> 
                            <td> <div align="left">
                                <table width="100%" border="0">
                                  <tr> 
                                    <td width="28%"> <div align="left"> 
                                        <input type="radio" name="screen"  value="1" <? if ($tmp[5]==1){echo "checked";}  ?> >
                                        Full screen.</div></td>
                                    <td width="23%"> <div align="left"> 
                                        <input type="radio" name="screen" value="2" <? if ($tmp[5]==2){echo "checked";}?> >
                                        F&ecirc;netre.</div></td>
                                    <td width="49%"><input type="radio" name="screen" value="3" <? if ($tmp[5]==3){echo "checked";}?> >
                                      M&ecirc;me f&ecirc;netre</td>
                                  </tr>
                                </table>
                                <strong></strong></div></td>
                          </tr>
                        </table>
                        </fieldset></td>
                    </tr>
                  </table>
                  <table width="85%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> <fieldset CLASS="TD1" width="50%">
                        <legend> <font size="2"><B>Cadre de la carte</B></font> 
                        </legend>
                        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
                          <tr valign="middle"> 
                            <td> <div align="left">
                                <table width="100%" border="0">
                                  <tr> 
                                    <td width="50%"> <div align="left"> 
                                        <input type="radio" name="cadre"  value="1" <? if ($tmp[6]==1){echo "checked";}  ?> >
                                        Avec cadre.</div></td>
                                    <td width="50%"> <div align="left"> 
                                        <input type="radio" name="cadre" value="0" <? if ($tmp[6]==0){echo "checked";}?> >
                                        Sans cadre.</div></td>
                                  </tr>
                                </table>
                                <strong></strong></div></td>
                          </tr>
                        </table>
                        </fieldset></td>
                    </tr>
                  </table>
                  <table width="85%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> <fieldset CLASS="TD1" width="50%">
                        <legend> <font size="2"><B>Menu d&eacute;taill&eacute; 
                        contextuel sur la carte</B></font> </legend>
                        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
                          <tr valign="middle"> 
                            <td> <div align="left">
                                <table width="100%" border="0">
                                  <tr> 
                                    <td width="50%"> <div align="left"> 
                                        <input type="radio" name="nville"  value="1" <? if ($tmp[7]==1){echo "checked";}  ?> >
                                        Passage simple de la souris.</div></td>
                                    <td width="50%"> <div align="left"> 
                                        <input type="radio" name="nville" value="0" <? if ($tmp[7]==0){echo "checked";}?> >
                                        Click droit.</div></td>
                                  </tr>
                                </table>
                                <strong></strong></div></td>
                          </tr>
                        </table>
                        </fieldset></td>
                    </tr>
                  </table>
                  <table width="85%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> <fieldset CLASS="TD1" width="50%">
                        <legend> <font size="2"><B>Coordon&eacute;e de la carte</B></font> 
                        </legend>
                        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
                          <tr valign="middle"> 
                            <td> <div align="left">
                                <table width="100%" border="0">
                                  <tr> 
                                    <td width="50%"> <div align="left"> 
                                        <input type="radio" name="coordonee"  value="1" <? if ($tmp[8]==1){echo "checked";}  ?> >
                                        Avec coordon&eacute;es.</div></td>
                                    <td width="50%"> <div align="left"> 
                                        <input type="radio" name="coordonee" value="0" <? if ($tmp[8]==0){echo "checked";}?> >
                                        Sans coordon&eacute;es.</div></td>
                                  </tr>
                                </table>
                                <strong></strong></div></td>
                          </tr>
                        </table>
                        </fieldset></td>
                    </tr>
                  </table>
                  
                  <table width="85%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> <fieldset CLASS="TD1" width="50%">
                        <legend> <font size="2"><B>Template</B></font> 
                        </legend>
                        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
                          <tr valign="middle"> 
                            <td> <div align="left"> 
                                <table width="100%" border="0">
                                  <tr> 
                                    <td> <div align="center">
                                        <select name="skin" id="skin">
                                          <option value="0" <? echo $CHOIX_SKIN[0]; ?> >Classique</option>
                                          <option value="1"  <? echo $CHOIX_SKIN[1]; ?> >M&eacute;di&eacute;val</option>
                                          <option value="2"  <? echo $CHOIX_SKIN[2]; ?> >Light</option>

                                           </select>
                                      </div></td>
                                  </tr>
                                </table>
                                <strong></strong></div></td>
                          </tr>
                        </table>
                        </fieldset></td>
                    </tr>
                  </table>
        
                    <?
echo"<input name=\"SID\" type=\"hidden\" name=\"SID\" value=\"$SID\" >";
echo"<input name=\"p\" type=\"hidden\" name=\"p\" value=\"test-option\" >";

				
?>
                    <input type="submit" name="Submit" value="Envoyer">
                 
                </div>
                </form>
            </div></td>
        </tr>
      </table></td>
  </tr>
</table>
